package com.fh.wanandroid.ui.knowledge.adapter;

import android.content.Context;
import android.util.Log;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.fh.wanandroid.R;
import com.fh.wanandroid.ui.knowledge.fragment.KnowledgeListFragment;

import java.util.List;


public class KnowledgeVpAdaper  extends FragmentPagerAdapter {

    List<KnowledgeListFragment> fragmentList;

    Context context;
    public KnowledgeVpAdaper(FragmentManager fm, Context context, List<KnowledgeListFragment> fragmentList) {
        super(fm);

        this.fragmentList = fragmentList;

    }


    @Override
    public Fragment getItem(int position) {

        return fragmentList.get(position);
    }

    @Override
    public int getCount() {
        return fragmentList.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return "";
    }
}
